home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 049a / sx227r1.zip / EXPAND.BAT < prev    next >
DOS Batch File  |  1990-07-30  |  2KB  |  74 lines

  1. echo off
  2. :
  3. :-----------------------------------------------------------
  4. : EXPAND batch file - Xpress Packet Expansion Process
  5. :   (c) copyright 1988-90 Santronics Software
  6. :-----------------------------------------------------------
  7. :
  8. :  NOTE: Xpress during the expansion process has already
  9. :        switched to the work directory.
  10. :
  11. :-----------------------------------------------------------
  12. : Input Parameters
  13. :-----------------------------------------------------------
  14. :
  15. :  1 Hotkey from Xpress Archiver Menu
  16. :  2 /R
  17. :  3 full path name to XPRESS PACKET   !uploaded packet full path
  18. :
  19. :-----------------------------------------------------------
  20. : Modify and Add extra archivers if required.
  21. :
  22. :     1) first add a IF statement with a GOTO
  23. :     2) then add the goto LABEL with the appropiate logic.
  24. :-----------------------------------------------------------
  25. :
  26. IF "%1" == "A" GOTO ARCA
  27. IF "%1" == "X" GOTO PKARC
  28. IF "%1" == "P" GOTO PAK
  29. IF "%1" == "Z" GOTO PKZIP
  30. IF "%1" == "L" GOTO LHARC
  31. GOTO ERROR
  32.  
  33. :------------------------------------ ARCE expansion
  34. :ARCA
  35. :
  36.   ARCE %3 %2
  37.   EXIT ERRORLEVEL
  38.   GOTO END
  39.  
  40. :------------------------------------ PKXARC expansion, 3.5 or 3.6
  41. :PKARC  - Note PKXARC does not return ERROR codes.
  42. :         Xpress will try to see if any !*.* exist to determine
  43. :         if an error occurred.
  44. :
  45.   PKXARC %2 %3
  46.   EXIT ERRORLEVEL
  47.   GOTO END
  48.  
  49. :------------------------------------ PAK expansion, 1.0
  50. :PAK
  51. :
  52.   PAK e %3
  53.   EXIT ERRORLEVEL
  54.   GOTO END
  55.  
  56. :------------------------------------ PKUNZIP expansion
  57. :PKZIP
  58. :
  59.   PKUNZIP -o %3
  60.   EXIT ERRORLEVEL
  61.   GOTO END
  62.  
  63. :------------------------------------ LHARC expansion
  64. :LHARC
  65. :
  66.   LHARC e /m %3 %4
  67.   EXIT ERRORLEVEL
  68.   GOTO END
  69.  
  70. :------------------------------------ ERROR PROCESSING
  71. :ERROR
  72. echo Expand Archiver %1 not found!
  73. :END
  74.